#pragma once
#include <d3d9.h>
#include <d3dx9.h>
#include <sstream>

using namespace std;

class PD3DMesh
{
private:
	LPD3DXMESH mesh ;
	D3DMATERIAL9* materials;
	LPDIRECT3DTEXTURE9* textures;
	DWORD numMaterials;
public:
	PD3DMesh(LPDIRECT3DDEVICE9 device, char *str);
	~PD3DMesh(void);
	VOID Render(LPDIRECT3DDEVICE9 device);
};

